Trailing whitespace.
Add lots of protection for places that deviate from the normal API do as to not break deploy resource.