Some functions for my project