Async detection

Added some async detection :) 

//cc @visionmedia