Made the modes static final ints per feedback.