Adding kwargs to serial_func