Changed grab block function.