Using constant to define URL to connect