Added functionality to set new coordinates