Added ability to define a callback on skip