Started work on distances stuff

Added wait distances. THIS WILL NOT WORK IN ITS CURRENT STATE.