Changed timespan calculation.
Added code for future implemetation of code-copy area.