First working version of SSL code!