Add support for localhost testing