Fork of entity.module.