Moved things to main.