Removed optional directory argument.