added 'shared' parameter as discussed today with Andre.