Use simple promises implementation