Extracting function parseArguments