Switch from pidof to pgrep + logging messages