Modularized handle magic and wrote function to search all processes of a certain name.