Changed called to be true if main method.