Handle arguments first before doing anything