Commiting the Temp file