Removed duplication of setting var