Implemented overarching data structure and position update functionality.