Walks function.