Make it works without rails