Police caught a bank robbery suspect in less than an hour after employees slipped a tracking device in his bag of cash on Friday.

Speaking at a press conference on Friday, Deputy Inspector Joseph Kersting told reporters that 56-year-old Duane Moore entered the M&T Bank on Second Avenue and 54th Street with a .45 caliber pistol and stole $41,000 from two teller stations and the bank's vault.

A teller grabbed the money and placed it in Moore's bag, along with the tracking device that allowed the NYPD's Real Time Crime Center to track his movements. Using the device, officers at 1 Police Plaza were able to track Moore's movements—Inspector Joseph Courtesis, commander of the Real Time Crime Center, said cops tracked him to 60th Street and Lexington Avenue, where he took an uptown train to 116th Street in East Harlem.

"He looked at us, we looked at him, we knew it was him, and after a short foot pursuit we put him under arrest," Courtesis said.

In addition to the $41,000 from the M&T robbery, Moore allegedly stole another $19,000 from banks across the city. Moore is being investigated in connection with three other bank robberies in the city—two on the Upper East Side and one in Queens—Kersting said.

Police are reviewing surveillance footage to determine whether Moore used a weapon during the robbery, the Post reports. At the Friday afternoon press conference, officers declined to go into detail about how the tracking device that led them to Moore worked.