Fixed tabs. More generalized code