Modifications to make shared memeory for.