Write compiles correctly rather than trying to call old build method