Added a constants class and made the port use it.