Added port variables to make more dynamic