Added a slew of entity-based functions.