Added the L1 penalty on weights.