Added missing promise as return value