Added arguments to serial code