Layout main function.