Renamed default script variable "entity" to "object" for convenience.
Removed resource class.