Fixed #14
Added delay for hardware buttons.