Added logic for real estates (in progress).