Async restler function