Added more anti-piracy checks