Block manipulation slightly improved:
Defined block type and used it in function definition.