Removed unsafe console call