Added privilege check
Added kernel modules
Improved optimization script