Put in additional checks to accommodate use of different platforms.