Move percent calculation to background