Making port a configuration option.
Adding initial test for keys.