Added custom resolution and callback