Added name == main to make running during development simpler