Started atom_handler function