Added helper function for entity and input managers.