Adding error handling for cases when scale is not setup