Implemented basic object tracking