Added threshold parameter for manual warning (-b)