Added a license
Fixed bug where security level wasn't applied