Had to change some major bugs regarding subroutine usage.