Removed security warning so shit will compile
Implemented FPS tracking for sample frequency