Use a macro to test for a valid signal instead of doing it my hand everywhere. Submitted by: rdivacky