Added pre and post render blocks