Implemented getAll() and fixed setup accordingly