Added performance measurement. Added to methods.