Added macro to define functions for moving scripts in various directions.