Updated function library for 6.1 compatibility (versionNumber)