BE VERY CAREFUL WITH THIS CODE - DO NOT RUN IT IF YOU HAVE NO IDEA WHAT YOU ARE DOING