Revision 2; fixed small issues with anti-hack