Add security option to create function