Added history callback