Time required for security screening is classified as time on the job under Pennsylvania’s minimum wage law, the state Supreme Court said in answering questions certified from the U.S. Court of Appeals for the Sixth Circuit.

The justices’ response to the federal appeals court bodes well for Amazon employees looking to be paid for the time they spend undergoing security screenings after their shifts.