More ugly code.