Computing next step in background thread