Made SecurityService serializable