First, rather messy layout of code. Get last build is working.