Put promise call into global method