Remove dependency on rails