General source code review. Will be deleted when revew is done.