Creating detection methods