"Fixed procedure code by taking some bugs out of it