Externalized some variables. Tried to make port configuration configurable.