Added whenLoaded() to models