Still need to tweak the process detection