Refactored LED cycling.
Some refactoring, and implementation of the trap read.