Added dividing into blocks