Refactored dired extension into sep. file.