Add some functions to set positions