Initial commit of wicap code