Added check for -L