Changed leadterm to handle logx parameter