Added support for alternative pin modes.