Use special type for Future.
New function to set and output states, removed som debug-related printlines.
Small changes.