Adding pidfile access