Simplified to handle a single object. Tested with cubes