Removed cursor and started with domain