Started writing an input engine