A major problem in the development of Elias Howe's sewing machine was the location of the eye of the needle. The inventor was rapidly running out of money and ideas when one night he had a peculiar dream. He was being led to his execution for failing to design a sewing machine for the king of a strange country. He was surrounded by guards, all of whom carried spears that were pierced near the head. Realizing instantly that this was the solution to his problem, Howe woke up and rushed straight to his workshop. By nine o'clock that morning, the design of the first sewing machine was well on the way to completion.