Implemented pedals with bitwise operations.