Changed the function allocateMemory which will only return the address.