Handle search requests in loop
Rename Internal.chs to Internal/Types.chs