Make callback synchronous and fix utils memory overlap.