Minor comment: This could be folded to be easier to read.