Implemented automatic beam/stem-length calculation