Rearranging and defining blocks