Forked from MD_5 spigot.