Pass arguments to main subroutine