Custom foundation library for troubleshooting