Added api's for safety and resume function