Removed text mode code