Read access and locked files check. Invalid arguments check.