Added function to get arguments.