Added performance logging