Removed pointers. Added atomicity to operations.