Cleaned up code
Define SSL if not defined