Added debug statements to see APP_PORT.