Fixed IO configuration and made some small tweaks.