Added measuring performance