Shrinking functions properly

Signed-off-by: Jared Woolston <jwoolston@tenkiv.com>