Refactored keeping the other properties of the object console