Made use of Ruby file helpers