Remove stuff not necessary for daemon