Implements command line options