Fixed the indentation issues. I was mixing spaces with hard tabs.