Added colored printing function to index-core.