Input polling and other small changes.