Implemented RPOP command