Added functionality so that things are based on wetmask