Changed initialize function name to main.