Various bugfixes and added tracktime.