Implemented walk function