getting rid of some stupid debugging code.
Adding the "is_active" function.