Refactored to have pm_handler_with_pa which handles 'pa is ready' ready-function-case.