Improved movement & added a simply logging function