Added global variable declarations for the ports.