Fixed incorrect port width. Added ready register and connected it to the port.