Added arparse options processing. NOTE: Probably need to move this to function