Replaced getAttribute with save version