Opened and closed in MPLab