Issue #1 - Added `ended` callback