Engine initializing code