Revised the init script