Modified upload script to deal with semester