Added live reload to functions