Refactored depricated API calls. Added chrome commands.