Adding function to add static objects