Implemented custom entity system.