Enhanced API using is_call_possible. A first step towards the integration of convenient stochastic methods and mini-batch training