Added a class for objects. Some global actions now work