Added new flags for sleep.
Added fin message.