Added add functions for entities