Move block.updated to outside switch statement
Insert power sources at head and other blocks at tail
Add power_sources stat