Add equalsAttributes and scope lastCreated