Added support to retrieve current weights.