Automatic init script