Added fill-up processing code