Improved spring layout. Maximum duration for calculation time can be set.