Deprecate methods temporarily and tried to fix a deadlock problem

Mark methods which doesnt require to pass in a context as deprecated. This will throw a warning when the client code are trying to use it.