Add security function bug not complete.