Basic functional file script working