Added the optional blocks function.