Make sure things are defined properly