FIX: wrong function name
Removed Arduino stuff.
Introducing promises