Cleared warnings on var not used