Added second optional approach for the same.