Added position and plan functions