Adds required functionality.