Cleaned up SMS lib file