Added functionality for local hosting