Towards pain
Added pain callback.