Added pid file handling to desc