Non-Markovian Control