detection enhanced and pause added