Started initialization function