Added Basic Authentication & command line function