Moved serpent to separate library