Private Spire implementation, some fixed errors