Added stuff for detecting fraud