Added working wakeup functionality!!