Added more helper functions in partlcehandler.