Fixing alarm and stuff

Rewriting is more like it <_<