Working version of pics model