Moved input processing over to managed code