Updated file sector functions to take argument as reference.