Make formatting static and add limitations

Signed-off-by: Andreas Pieber <anpieber@gmail.com>