Added some code for simple blocks generation