Added utility functions and styles