Removed consol.log debug call.