Added resources, fixed tail-recursion, added url