Changed main to CLI