Added getLastArg function