Added PID file (thanx to Joerg)