Fixed incorrect time calculations when contracted. Closes #179.