Changed a few constants. The entire procedure seems to be working albeit some minor bugs.