Remove nested algorithm from TouchCamera