All code related with other things was separated from index.