Removed switch and created the attributes object with all prepares