Added better build hooks.