Added begin block to initialize getopts stuff