Fixed bug and increased 'power-off' period.