Changed to ast parsing for finding nested node