Add compatibility to <5.4 versions.