Incomplete and ugly looking code