First working version of object placement.