Split verifyArgs

Split verifyArgs so as to allow for hooks to easily be written.