Added variable weight

Added variable weight