Updated for litecoin