Refactored regarding LocalHostUrl