Loosen dependency on rails