Revert - "Not declared in this scope - Error fixed"