Filled in a bit more for the processing function