Add functions for getting objects by type