Added memory mapping library functions