Removed triangle rendering and relocated callback initialization to respective function.