Moving admin functions to .inc file