Collecting some old code from AQuA Mashup two years ago: https://github.com/openplanets/AQuA