Changed code to have consistent tab indentation