Added a few more features and permission fixes for loggy.