Added __init__ for resources