Added coordinate manipulation functions.