Swift version of PPMonitor