More updates to Rails script