In reply to zz8318:
Yes, you should only use it in the run_phase().
Make sure you use the create() instead of new().