Made security optional.