Suspend/resume functionality

Fixed formatting.