Implement padding on blocks.