Cleaned up errors by moving into shared library