Moving send calls into callback