Added: time measuring, instance reading. TODO: segfault fix (sorry)