Removing start and end flux arrays from code