Man, these if-else-blocks are nested like crazy!