Modofied into background daemon script.