Added initial input protection, input divider switching and buffering