A multifunction peripheral which is configured to operate in a first mode or a second mode, in which the multifunction peripheral consumes less power than in the first mode, the apparatus comprising: an inputting means, which is at least one of a network interface configured to input image data from a local area network, a modem configured to input image data from a public line and a reading unit configured to read a document and input image data; a volatile storage medium configured to store the image data input by the inputting means; a first supplying unit configured to supply power to the storage medium if the multifunction peripheral is operating in the first mode; a second supplying unit configured to supply power to the storage medium if the multifunction peripheral is operating in the second mode; a charging unit configured to charge the second supplying unit if the multifunction peripheral is operating in the first mode; a measurement unit configured to measure an amount of time in which the multifunction peripheral operates in the first mode after the multifunction peripheral shifts to the first mode; and a control unit configured to control the multifunction peripheral, characterized in that the control unit is configured to control the charging unit to charge the second supplying unit in the first mode and control the first supplying unit to disallow the multifunction peripheral to shift to the second mode, where the charging unit does not charge the second supplying unit, until an amount of time, which is measured by the measurement unit and in which the multifunction peripheral continuously operates in the first mode, becomes greater than a first predetermined amount of time, the control unit is configured to control the first supplying unit to allow the multifunction peripheral to shift to the second mode, where the charging unit does not charge the second supplying unit, after the amount of time, which is measured by the measurement unit and in which the multifunction peripheral continuously operates in the first mode becomes greater than the first predetermined amount of time, and the control unit is configured to control the first supplying unit to allow the multifunction peripheral to shift to the second mode, where the charging unit does not charge the second supplying unit, after a total amount of time, which is measured by the measurement unit and in which the multifunction peripheral operates in the first mode after the multifunction peripheral is turned on, becomes greater than a second predetermined amount of time which is longer than the first predetermined amount of time. an inputting means, which is at least one of a network interface configured to input image data from a local area network, a modem configured to input image data from a public line and a reading unit configured to read a document and input image data; a volatile storage medium configured to store the image data input by the inputting means; a first supplying unit configured to supply power to the storage medium if the multifunction peripheral is operating in the first mode; a second supplying unit configured to supply power to the storage medium if the multifunction peripheral is operating in the second mode; a charging unit configured to charge the second supplying unit if the multifunction peripheral is operating in the first mode; a measurement unit configured to measure an amount of time in which the multifunction peripheral operates in the first mode after the multifunction peripheral shifts to the first mode; and a control unit configured to control the multifunction peripheral, characterized in that the control unit is configured to control the charging unit to charge the second supplying unit in the first mode and control the first supplying unit to disallow the multifunction peripheral to shift to the second mode, where the charging unit does not charge the second supplying unit, until an amount of time, which is measured by the measurement unit and in which the multifunction peripheral continuously operates in the first mode, becomes greater than a first predetermined amount of time, the control unit is configured to control the first supplying unit to allow the multifunction peripheral to shift to the second mode, where the charging unit does not charge the second supplying unit, after the amount of time, which is measured by the measurement unit and in which the multifunction peripheral continuously operates in the first mode becomes greater than the first predetermined amount of time, and the control unit is configured to control the first supplying unit to allow the multifunction peripheral to shift to the second mode, where the charging unit does not charge the second supplying unit, after a total amount of time, which is measured by the measurement unit and in which the multifunction peripheral operates in the first mode after the multifunction peripheral is turned on, becomes greater than a second predetermined amount of time which is longer than the first predetermined amount of time.