Fixed tabs and added missing return statement.