Made the Multiblock code faster and more readable