Changed name of dorow function to processrow