Placed upload process in a separate class