In reply to chr_sue:
Thanks for reply , i had corrected my question now. I understand that this is bad coding style. but i still have this questions :
What will happen if i use only main_phase of sub-phases available for run_phase (i.e. reset, configure, shutdown ). Will this affect in anyways?