Adapted for Sublime Text 3