Change code to main