More ES<5 compatibility. Bump to 0.5.2