Moved world.direction outside.