Agency And Confidence: On The Function Of Metacognition In Action