Added function to decide on cut-off