Added infer module
Fixed global scope
Removed console
@deprecated