Added unpackReal function.