Make compatible with newer Node versions.