Added atomic classes sub routine