Reading encoder values now works properly