Updated file based on suggestions from WebStorm.