Main created and working.