Working fixed buffer example