Added options parameter to perform_actions when you specify a directory