Advanced fps counter, removed some cruft