I have taken temazepam (10mg) occasionally (got a new prescription when I realised my current bottle was 5 years old!) for decades. I am not the world's greatest sleeper but very occasionally I get into a prolonged period of not sleeping. Worrying that you won't be able to get to sleep is a self fulfilling prophecy and then I need something to break the cycle for a couple of days. My doctor is unworried to put it mildly. You just don't want to be using it all the time.