Implemented helper functions for add/remove blocks