Fixed #8 by moving SDK into separate library