Finally sorted out the indentation to be in tabs in emacs.