Unified indentation style to 2 spaces
Reorganized a block of code to a method
Added a post