Changed patient agent argument parsing