Added pull-up for input pins during initialisation