Add continuation function