There are a lot of duplications in Solaris code, I thought I will refactor all of it another day.