Added support for selecting objects with mouse.