Implemented weight decay.