Add PM commands and logging