Wrapped asap in anonymous function