Reference main properly