Added reached_floor function.