Added code for interacting with 3d models