Implemented template selector