Changed from tabs to spaces since it looked like crap when previewing code on github.