Prevent from hogging cpu