Closing the loop on bottle caps