Updated method declarations for setEnabledFrom and setEnabledTo to allow for null values.