Added threshold mock