Fix problem with async requests (closes #20)