Separate upload into separate function