Updated some functions for MobHandler.