Added returns after creating the warnings