Plugging in scheduling code. Some issue with running activity on emulator though.