Added a separate port for debug mode.