Corrected the backward motion and improved the border behavior.